load('../src/ph/ph.js');

ph.bootstrap('settings.js');
ph.keepRunning();

dojo.require('ph.rfid.Reader');

rfid = new ph.rfid.Reader();
rfid.onTagEnter = rfid.onTagLeave = function(evt) {
  print(evt.type + ': ' + evt.tag + ', last tag: ' + rfid.lastTag + ', has a tag currently: ' + rfid.hasTag);
};

rfid.open();
rfid.led = true;
rfid.antenna = true;

print('Ready to read!');